//
//  Log.swift
//  sss
//
//  Created by HOrange on 2023/2/12.
//  Copyright © 2023 hrrMac. All rights reserved.
//

import Foundation

func log<T>(_ msg: T, file: NSString = #file, line: Int = #line, fn: String = #function){
    #if DEBUG
    print("\n====================================")
    print("#time :\(Date(timeIntervalSinceNow: 0))\n#class:\(file.lastPathComponent)\n#line :\(line)\n#func :\(fn)")
    print(msg)
    print("====================================\n")

    #endif
}


func logWithTime<T>(_ msg: T){
    print("[\(Date(timeIntervalSinceNow: 0))]:",msg)
}

